package com.inspur.incubator.common;

import java.util.UUID;

public class SerialNumberUtil {
	
	public static String getSerialNumber(){
		 return UUID.randomUUID().toString().replace("-", "");
	}
	public static String getSerialNumber(String str){
		return UUID.fromString(str).toString().replace("-", "");
	}
	public static String getSerialNumber(byte[] bytes){
		return UUID.nameUUIDFromBytes(bytes).toString().replace("-", "");
	}

	public static void main(String args[]){
		System.out.println(getSerialNumber());
	} 
}
